package nina.yiyou.salary.output.util


import java.nio.file.Files
import java.nio.file.Path

class OutCsvWriter {

  OutCsvWriter(Path csvPath, List<String> lines) {
    _csvPath = csvPath
    _lines = lines
  }

  void write() {
    Files.write(_csvPath, _lines.join('\r\n').getBytes('GBK'))
  }

  private final Path _csvPath

  private final List<String> _lines
}
